package cn.wonderland.feign;

import cn.wonderland.domain.Device;
import cn.wonderland.util.JSONResult;
import cn.wonderland.vo.DeviceBuildVo;
import cn.wonderland.vo.DeviceVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "service-device",path = "device")
public interface DeviceFeignClient {

    /*
     * 根据设备id查询设备信息
     * getDeviceInfoById
     * */
    @GetMapping("/getDeviceByBuildId")
    List<DeviceBuildVo> getDeviceByBuildId(@RequestParam("id") Integer id);

    /*
     * 根据设备类型获取所有设备信息
     */
    @GetMapping("/getDeviceByType")
    List<Device> getDeviceByType(@RequestParam("type") Integer type);
}
